import request from "@/utils/request";
import type {ICommonResponse} from "@/types/global";

export interface IRegisterAPIRequestData {
    loginName: string,
    password: string,
}

const registerAPI = (data: IRegisterAPIRequestData): ICommonResponse<string> => {
    return request({
        url: '/api/v1/user/register',
        method: "POST",
        data,
    })
}

export default registerAPI;